public class Test {
    public static void main(String[] args) {
            String str1 = new String("abc");
            String str2 = new String("abc");
            //System.out.println(str1 == str2);
        System.out.println(str1.equals(str2));
    }
    public static void main2(String[] args) {
        String str1 = "abc";
        String str2 = "abc";
        System.out.println(str1 == str2);
    }
    public static void main1(String[] args) {
        char[] array = {'h','e','l','l','o','b','i','t'};
        String s3 = new String(array);
        System.out.println(s3);

        }
}
